package org.molamil.acto.expressions{
	import org.molamil.acto.utils.ObjectUtils;

	/**
	 * @author martindyrby
	 */
	public class DefaultExpressionEvaluator extends AbstractExpressionEvaluator{
		
		// CONSTANTS
		
		/**
		 * Represents the default <code>priority</code> for this class. This value is set
		 * to the <code>priority</code> property at construction time.
		 */
		public static const PRIORITY:uint = 200;
		
		
		override public function evaluate(expression:String, data:Object):*{
			if (expression == null)
				return null;
				
			return ObjectUtils.getNestedProperty(data, expression);
		}
	}
}
